<div style="font-size:14px; font-weight:bold;">Add a Offer</div>
<?php
if (eregi("addoffer_layout.php",$HTTP_SERVER_VARS['PHP_SELF']) || eregi("addoffer_layout.php",$_SERVER['PHP_SELF'])) {
	echo "<html>\r\n<head>\r\n<title>Invalid Access</title>\r\n</head>\r\n<body><h3>Invalid Access</h3>\r\nInvalid Access of this file is forbidden.\r\n</body>\r\n</html>";
	exit;
}
if(isset($_SESSION['error']) || isset($error))
{
    if(isset($_SESSION['error']) && !isset($error))
	{
	    $error = $_SESSION['error'];
	}
    echo "<div style=\"font-size:12px; color:#FF0000\">".$error."</div>";
	unset($_SESSION['error']);
}elseif(isset($_SESSION['msg']))
{
    echo "<div style=\"font-size:12px; color:#0000FF\">".$_SESSION['msg']."</div>";
	unset($_SESSION['msg']);

}
?>
<form action="index.php?m=offers&add=1" method="post" enctype="multipart/form-data">
<table class="settings_table" cellspacing="5">
<tr><td>Offer Name</td><td><input type="text" name="oname" value="<?=stripslashes($name)?>"  /></td></tr>
<tr><td>Description</td><td><textarea name="desc" style="width:300px; height:60px"><?=stripslashes($desc)?></textarea></td></tr>
<tr><td>Offer Link</td><td><input type="text" name="link" value="<?=$link?>"  /></td></tr>
<tr><td>Submission Limit</td><td><input type="text" name="limit" value="<?=$limit?>"  /></td></tr>
<tr><td>Payout</td><td><input type="text" name="credits" value="<?=$credits?>"  /></td></tr>
<tr><td>Countries</td><td><select name="countries[]" multiple="multiple" size="10" style="height:200px"><option value="0">All Countries</option><?=getCountries($countries)?></select></td></tr>
<tr><td>Network</td><td><select name="network"><option value="0">Select Network</option><?=getNetworks($network)?></select></td></tr>
<tr><td>Network Campaign ID</td><td><input type="text" name="camp_id" value="<?=$campaignId?>"  /></td></tr>
<tr><td>Mobile Offer (Pin-Confirm)</td><td><input type="checkbox" name="mobile" <?php if($mobile == 1) echo "checked=\"checked\""; ?> value="1" /></td></tr>
<tr><td>Status</td><td><select name="status"><?=selection()?></select></td></tr>
<tr><td colspan="2" style="text-align:right; padding-top:8px"><input type="submit" name="addOffer" value="Add Offer" /></td></tr>
</table>
</form>